<?php

// +----------------------------------------------------------------------
// | 小说系统 [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------

namespace app\common\model;

/**
* 设置模型  用户表彰表
*/
class UploadPath extends Base
{
    protected $name = "UploadPath";
    protected $auto = array('update_time','status'=>1);
	protected $append=[
		'create_time_text'
	];
	public function getCreateTimeTextAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['create_time']) ? $data['create_time'] : '');
        return is_numeric($value) ? date("Y-m-d", $value) : $value;
    }

}
